//--------------------------------------------------------------------
//     Author:Howe
//     Date: 2021-04-13 21:41:46 
//     Description:对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
//--------------------------------------------------------------------
using System;
using System.Threading.Tasks;
using Kylin.Wiki.Core; 
using Kylin.Wiki.Services;
using Kylin.Wiki.Model.Entity;
using Kylin.Wiki.Model.Api;
using Kylin.Wiki.Model.View;
using System.Collections.Generic;
using Kylin.Wiki.Model.Dto;

namespace Kylin.Wiki.IService
{	
    /// <summary>
    /// IMenuServices
    /// </summary>	
    public interface IMenuService : IServices<Menu>
    {

        ApiResult<List<MenuVM>> GetMenus(int userId);

        ApiResult<List<MenuVM>> GetListByRoleID(int roleId);

        ApiResult<List<MenuVM>> GetList();

        ApiPageResult<List<MenuVM>> GetListByPage(MenuDTO menuDTO);

        ApiResult<bool> Create(Menu menu);

        ApiResult<bool> Update(Menu menu);

        ApiResult<bool> Delete(Menu menu);
    
    }
  
} 
	